import React, {useEffect} from "react";
import {useLocation, useNavigate} from "react-router-dom";
import {Outlet} from "react-router";
import {checkRouterAuth} from "@/router/GloablRouter";
import confirm from "antd/lib/modal/confirm";

/**
 * 路由守卫  在这里做登录鉴权并没有意义 这里的功能暂时需要考虑
 * @constructor
 */
export function RouterBeforeEach() {
	const navigate=useNavigate();
	let location=useLocation();

	return (
		<>
			<Outlet/>
		</>
	)
}